package com.ling.pl.config;

import com.ling.pl.demo.DemoConfiguration;
import com.ling.pl.security.SecurityConfiguration;
import com.ling.pl.system.SystemConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.Order;

/**
 * 模块Spring配置类
 */
@Configuration
@AutoConfigureBefore({JpaRepositoriesAutoConfiguration.class})
@ConditionalOnClass(SecurityConfiguration.class)
//@ConditionalOnProperty(prefix = "security.basic", name = "enabled", matchIfMissing = true)
@Order(SecurityProperties.BASIC_AUTH_ORDER - 100)
@Import({SecurityConfiguration.class, DemoConfiguration.class, SystemConfiguration.class})
public class BaseAutoConfiguration {

}
